<?php

	use think\facade\Route;

Route::rule('store/admin/:controller/:action', 'store.admin.:controller/:action');
Route::rule('store/:controller/:action', 'store.:controller/:action');

Route::rule('file/admin/:controller/:action', 'file.admin.:controller/:action');
Route::rule('file/:controller/:action', 'file.:controller/:action');

Route::rule('im/admin/:controller/:action', 'im.admin.:controller/:action');
Route::rule('im/:controller/:action', 'im.:controller/:action');

Route::rule('store/admin/:controller/:action', 'store.admin.:controller/:action');
Route::rule('store/:controller/:action', 'store.:controller/:action');

Route::rule('pos/admin/:controller/:action', 'pos.admin.:controller/:action');
Route::rule('pos/:controller/:action', 'pos.:controller/:action');

Route::rule('cms/admin/:controller/:action', 'cms.admin.:controller/:action');
Route::rule('cms/:controller/:action', 'cms.:controller/:action');


Route::rule('app/admin/:controller/:action', 'app.admin.:controller/:action');
Route::rule('app/:controller/:action', 'app.:controller/:action');

Route::rule('pay/admin/:controller/:action', 'pay.admin.:controller/:action');


Route::rule('admin/:controller/:action', 'admin.:controller/:action');
Route::rule('admin', 'admin.index/index');
//	Route::rule('api/v2/:controller/:action', 'api.v2.:controller/:action')->allowCrossDomain()
//        ->middleware([\app\common\middleware\AllowOriginMiddleware::class]);;